<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<form id="pagerForm" method="post" action="<%=basePath %>rolePermission.do">
	<input type="hidden" name="status" value="<s:property value='status' />"/> 
	<input type="hidden" name="keywords" value="<s:property value='keywords' />"/> 
	<input type="hidden" name="pageNum" value="<s:property value='pageNum' />"/> 
	<input type="hidden" name="numPerPage" value="<s:property value='numPerPage' />"/> 
	<input type="hidden" name="orderField" value="<s:property value='orderField' />"/>
</form>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="<%=basePath %>direct.do?pageUrl=module/rolePermission/add.jsp" target="dialog" rel="addPermissionDialog" height="145" width="420"><span>添加</span>
			</a>
			</li>
			<li><a class="delete"
				href="<%=basePath %>rolePermission!delete.do?deleteId={permission}" target="ajaxTodo"
				title="确定要删除吗?"><span>删除</span>
			</a>
			</li>
			<li><a class="edit" href="<%=basePath %>rolePermission!edit.do?editId={permission}&flag=showEditPage" target="dialog" rel="editPermissionDialog" height="145" width="420"><span>修改</span>
			</a>
			</li>
			<li class="line">line</li>
			<li><a class="icon" href="demo/common/dwz-team.xls"
				target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span>
			</a>
			</li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="75">
		<thead>
			<tr>
				<th width="180">权限标识</th>
				<th>权限名称</th>
			</tr>
		</thead>
		<tbody>

			<s:iterator value="permissionList" status="groupStatus">
				<tr target="permission" rel="<s:property value='id' />">
					<td><s:property value="id" />
					</td>
					<td><s:property value="name" />
					</td>
				</tr>
			</s:iterator>

		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span> <select name="numPerPage"
				onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20" <s:if test="numPerPage=='20'">selected="selected"</s:if>>20</option>
				<option value="50" <s:if test="numPerPage=='50'">selected="selected"</s:if>>50</option>
				<option value="100" <s:if test="numPerPage=='100'">selected="selected"</s:if>>100</option>
				<option value="200" <s:if test="numPerPage=='200'">selected="selected"</s:if>>200</option>
			</select> <span>条，共<s:property value='totalCount' />条</span>
		</div>

		<div class="pagination" targetType="navTab" totalCount="<s:property value='totalCount' />"
			numPerPage="<s:property value='numPerPage' />" pageNumShown="10" currentPage="<s:property value='currentPage' />"></div>

	</div>
</div>
